using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;

public partial class ChartView : SiteAdminBase
{
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            string ID = Request["ID"];
            if (!string.IsNullOrEmpty(ID))
            {
                DataSet ds = BaseAccess.GetDataSet(base.Connection, 
                    "select * from T_ChartView where ID='"+ID.Replace("'","")+"'");
                if (ds!=null && ds.Tables[0].Rows.Count>0)
                {
                    ucChartView.InitData(ds.Tables[0].Rows[0]["XMLData"].ToString(),
                        ConfigManager.OLEDBConnectionString);
                }                
            }
        }
    }
}
